package com.qf.spring.aop.proxy.statics;


import com.qf.spring.aop.service.OrderService;
import com.qf.spring.aop.service.UserService;

/**
 * 测试静态代理
 */
public class Test {

    public static void main(String[] args) {

        //1.初始化静态代理类对象
        UserService userService = new UserServiceProxy();
        OrderService orderService = new OrderServiceProxy();
        //2.调用方法
        userService.login();
        System.out.println("----------------------");
        userService.loginOut();
        System.out.println("----------------------");
        orderService.orders();
    }
}
